﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using FluentNHibernate.Mapping;

namespace AssetAllocationSystem.Models.Mapping
{
    public class VendorMapping : SubclassMap<Vendor>
    {
        public VendorMapping()
        {
            Table("Vendor");
            Map(a => a.Id);
            Map(a => a.Name);
            References(a => a.Allocations);
            DiscriminatorValue((int) DiscriminatorEnum.VENDOR);
        }
    }
}